package cn.tsmchina.one.service.user;

import cn.tsmchina.one.domain.user.User;

/**
 * Description:
 * @author zhaoying 
 * @date 2013-10-4
 * @version 1.0
 * Copyright: Copyright (c) 2013 TSM,Inc
 */
public interface UserService {
	//用户注册
	public Long addUser(User user, long customerId);
	
	//登录验证
	public User loginValid(String phone, String password, long customerId);
	
	//用户更新资料
	public User updateUser(User user);
	
	public boolean updateUserPass(User user);
	
	public void update(User user);
	
	public void updateUserCredits(long userId, int minus);
	
	public User getUser(long userId);
}

